Release 10.1A: OpenEdge Development:
Messaging and ESB


Creating a Pub/Sub session procedure

In the following example, the application creates a session object by calling pubsubsession.p persistently, as shown in the following example:

Creating a Pub/Sub session 
DEFINE VARIABLE ptpsession AS HANDLE. 
RUN  jms/pubsubsession.p PERSISTENT  
    SET pubsubsession ("-H localhost -S 5162 "). 

Creating the session object specifies the connection parameters to the SonicMQ Broker. This allows an application to set different session-level attributes before starting the JMS session. The connection to the SonicMQ Broker and the JMS session does not occur until the application calls the beginSession procedure.


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095